using I2.Loc;
using UnityEngine;

public class I2LocalizeGlobalParameters : MonoBehaviour, ILocalizationParamsManager
{
	public void OnEnable()
	{
		if (!LocalizationManager.ParamManagers.Contains(this))
		{
			LocalizationManager.ParamManagers.Add(this);
			LocalizationManager.LocalizeAll(Force: true);
		}
	}

	public void OnDisable()
	{
		LocalizationManager.ParamManagers.Remove(this);
	}

	private void Start()
	{
		Object.DontDestroyOnLoad(this);
	}

	public virtual string GetParameterValue(string ParamName)
	{
		if (ParamName == "DAY")
		{
			return DO.Campaign.day.ToString();
		}
		return null;
	}
}
